summaryrefslogtreecommitdiff
path: root/test cases/unit/32 python extmodule/blaster.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-03 18:56:34 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-05-03 18:56:34 +0530
commit575ffec62e9b24513db48cd5af3a1100fc79143f (patch)
treec38440e34dc1adc1ca369e4e74708fa704c5724d /test cases/unit/32 python extmodule/blaster.py
parent8bda86faabc5943954d85720967caadc1de95c46 (diff)
downloadmeson-575ffec62e9b24513db48cd5af3a1100fc79143f.tar.gz
python module: Move tests to test cases/unit
The tests are only run via unit tests, so that's where they should be.
Diffstat (limited to 'test cases/unit/32 python extmodule/blaster.py')
-rwxr-xr-xtest cases/unit/32 python extmodule/blaster.py14
1 files changed, 14 insertions, 0 deletions
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)