Exemplo n.º 1
0
 def test_tudo_correto(self):
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertEqual(0, testemunha.answer(SUSPEITO, LOCAL, ARMA))
Exemplo n.º 2
0
 def test_suspeito_local_errados(self):
     lista = [1,2]
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertIn(testemunha.answer("Charles B. Abbage", "Redmond", ARMA), lista)
Exemplo n.º 3
0
 def test_tudo_errado(self):
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertNotEqual(0, testemunha.answer("Charles B. Abbage", "Redmond", 'Peixeira'))
Exemplo n.º 4
0
 def test_suspeito_arma_errados(self):
     lista = [1,3]
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertIn(testemunha.answer("Charles B. Abbage", LOCAL, 'Peixeira'), lista)
Exemplo n.º 5
0
 def test_arma_local_errados(self):
     lista = (2,3,)
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertIn(testemunha.answer(SUSPEITO, "Palo Alto", 'DynaTAC 8000X'), lista)
Exemplo n.º 6
0
 def test_suspeito_errado(self):
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertEqual(1, testemunha.answer("Charles B. Abbage", LOCAL, ARMA))
Exemplo n.º 7
0
 def test_local_errado(self):
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertEqual(2, testemunha.answer(SUSPEITO, "Redmond", ARMA))    
Exemplo n.º 8
0
 def test_arma_errada(self):
     testemunha = Testemunha(SUSPEITO, LOCAL, ARMA)
     self.assertEqual(3, testemunha.answer(SUSPEITO, LOCAL, "Trezoitão"))