Exemplo n.º 1
0
 def test_first_88(self):
     self.assertTrue(three_go_in(19))
     self.assertFalse(three_go_in(2))
     self.assertRaises(TypeError, three_go_in, 'abc')
     self.assertRaises(TypeError, three_go_in, (4, 3))
     self.assertRaises(TypeError, three_go_in, {1: 3})
     self.assertRaises(TypeError, three_go_in, {8, 2})
     self.assertRaises(TypeError, three_go_in, [1, 3])
     self.assertRaises(TypeError, three_go_in)
Exemplo n.º 2
0
def test_09_task_88():
    with pytest.raises(TypeError):
        three_go_in("To be or not to be?")
Exemplo n.º 3
0
def test_08_task_88_fail():
    assert three_go_in(2)
Exemplo n.º 4
0
def test_07_task_88():
    with pytest.raises(TypeError):
        three_go_in()
Exemplo n.º 5
0
def test_04_task_88():
    with pytest.raises(TypeError):
        three_go_in({14: 6})
Exemplo n.º 6
0
def test_01_task_88():
    assert three_go_in(19)
Exemplo n.º 7
0
def test_00_task_88(param_test):
    (inputting, expected_output) = param_test
    result = three_go_in(inputting)
    assert result == expected_output