Exemplo n.º 1
0
 def test_1(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Dirty"], 0, []),
                      (["Suck", "Right", "Suck"], 3))
Exemplo n.º 2
0
 def test_8(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Clean"], 1, []), ([], 0))
Exemplo n.º 3
0
 def test_6(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Dirty"], 1, []),
                      (["Suck"], 1))
Exemplo n.º 4
0
 def test_5(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Dirty"], 0, []),
                      (["Right", "Suck"], 2))
Exemplo n.º 5
0
 def test_4(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Clean"], 1, []),
                      (["Left", "Suck"], 2))
Exemplo n.º 6
0
 def test_2(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Dirty"], 1, []),
                      (["Suck", "Left", "Suck"], 3))