From 575ffec62e9b24513db48cd5af3a1100fc79143f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 3 May 2018 18:56:34 +0530 Subject: python module: Move tests to test cases/unit The tests are only run via unit tests, so that's where they should be. --- test cases/unit/32 python extmodule/blaster.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test cases/unit/32 python extmodule/blaster.py (limited to 'test cases/unit/32 python extmodule/blaster.py') diff --git a/test cases/unit/32 python extmodule/blaster.py b/test cases/unit/32 python extmodule/blaster.py new file mode 100755 index 000000000..163b6d426 --- /dev/null +++ b/test cases/unit/32 python extmodule/blaster.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import sys +import tachyon + +result = tachyon.phaserize('shoot') + +if not isinstance(result, int): + print('Returned result not an integer.') + sys.exit(1) + +if result != 1: + print('Returned result {} is not 1.'.format(result)) + sys.exit(1) -- cgit v1.2.3