def test_same(self): config = [[0, 0], [0]] answer = gps.get_configuration_answer(config) self.assertEqual(answer.split("_")[1], 'none')
def test_attract(self): config = [[0, 0], [1]] answer = gps.get_configuration_answer(config) self.assertEqual(answer.split("_")[1], 'attract')
def test_repel(self): config = [[0, 0], [-1]] answer = gps.get_configuration_answer(config) self.assertEqual(answer.split("_")[1], 'repel')
def test_b_is_larger(self): config = [[0, 1], [0]] answer = gps.get_configuration_answer(config) self.assertEqual(answer.split("_")[0], 'B')