class MothTests(unittest.TestCase):
    def setUp(self):
        self.moth = Moth(5)

    def test_get_position(self):
        self.assertEqual(5, self.moth.get_position())

    def test_move_to_light(self):
        self.moth.move_to_light(10)
        self.assertEqual(7.5, self.moth.get_position())
class MothTests(unittest.TestCase):
    def setUp(self):
        self.moth = Moth(5)

    def test_get_position(self):
        self.assertEqual(5, self.moth.get_position())

    def test_move_to_light(self):
        self.moth.move_to_light(10)
        self.assertEqual(7.5, self.moth.get_position())
 def setUp(self):
     self.moth = Moth(5)
 def setUp(self):
     self.moth = Moth(5)