| 1 | import sys |
| 2 | import jpype |
| 3 | import common |
| 4 | |
| 5 | # This is an example of how to pass arguments to pytest. |
| 6 | # Options are defined in the file conftest.py and |
| 7 | # passed the a fixture function. This fixture function |
| 8 | # is then applied to each TestCase class. |
| 9 | # |
| 10 | # class OptsTestCase(common.JPypeTestCase): |
| 11 | # |
| 12 | # def setUp(self): |
| 13 | # common.JPypeTestCase.setUp(self) |
| 14 | # |
| 15 | # def testOpts(self): |
| 16 | # self.assertTrue(hasattr(self, "_jar")) |
| 17 | # self.assertTrue(hasattr(self, "_convertStrings")) |
| 18 | # |
| 19 | # def testConvertStrings(self): |
| 20 | # self.assertTrue(self._convertStrings) |
| 21 | # |
| 22 | # def testJar(self): |
| 23 | # self.assertEqual(self._jar, "foo") |