Example #1
0
class test_strategy(unittest.TestCase):

    s = None

    def setUp(self):
        # Strategy is an abstract base class, it cannot be instantiated.
        self.s = TestStrategy()

    def test_class(self):
        self.assertIsInstance(self.s, Strategy, "s is not Strategy")

    def test_the_test(self):
        expected = 1
        self.assertEqual(expected, self.s.move())
Example #2
0
class test_strategy(unittest.TestCase):

    s = None

    def setUp(self):
        # Strategy is an abstract base class, it cannot be instantiated.
        self.s = TestStrategy()

    def test_class(self):
        self.assertIsInstance(self.s, Strategy, "s is not Strategy")

    def test_the_test(self):
        expected = 1
        self.assertEqual(expected, self.s.move())
Example #3
0
 def setUp(self):
     # Strategy is an abstract base class, it cannot be instantiated.
     self.s = TestStrategy()
Example #4
0
 def setUp(self):
     # Strategy is an abstract base class, it cannot be instantiated.
     self.s = TestStrategy()