Esempio 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)
Esempio n. 2
0
def test_09_task_88():
    with pytest.raises(TypeError):
        three_go_in("To be or not to be?")
Esempio n. 3
0
def test_08_task_88_fail():
    assert three_go_in(2)
Esempio n. 4
0
def test_07_task_88():
    with pytest.raises(TypeError):
        three_go_in()
Esempio n. 5
0
def test_04_task_88():
    with pytest.raises(TypeError):
        three_go_in({14: 6})
Esempio n. 6
0
def test_01_task_88():
    assert three_go_in(19)
Esempio n. 7
0
def test_00_task_88(param_test):
    (inputting, expected_output) = param_test
    result = three_go_in(inputting)
    assert result == expected_output