Пример #1
0
 def test_atleast_length_two(self):
     assert util.standard_error([1]) == None
Пример #2
0
 def test_list_all_numbers(self):
     with pytest.raises(TypeError):
         util.standard_error([1,2,3,4,"2"])
Пример #3
0
 def test_math(self):
     assert util.standard_error([1,2]) == 0.35355339059327373
Пример #4
0
 def test_is_list(self):
     with pytest.raises(TypeError):
         util.standard_error("x")
Пример #5
0
 def test_emptyList(self):
     assert util.standard_error([]) == None