From 108f8af25182ec7738802a3c371a04d5fe59a985 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 May 2011 04:04:59 -0400 Subject: [PATCH] added haystack test runner --- test_haystack.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 test_haystack.py diff --git a/test_haystack.py b/test_haystack.py new file mode 100755 index 0000000..8a985a6 --- /dev/null +++ b/test_haystack.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + + +import unittest2 as unittest + +import haystack + + + +class HaystackTestSuite(unittest.TestCase): + """Haystack Test Suite.""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def test_maths_returns_int(self): + assert isinstance(haystack.maths(), float) + + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file