示例#1
0
 def test_ask_number(self):
     with mock.patch('builtins.input', return_value='1'):
         assert E9.ask_number() == int(1)
示例#2
0
 def test_million_romans(self):
     variable_t = 1000000
     assert E9.generate_romans(variable_t) == "_\nM"
示例#3
0
 def test_large_romans(self):
     variable_t = 4500
     assert type(E9.generate_romans(variable_t))== type("string")
示例#4
0
 def test_negative_romans(self):
     variable_t = -4500
     assert type(E9.generate_romans(variable_t)) == type("string")
示例#5
0
 def test_small_romans(self):
     variable_t = 123
     assert type(E9.generate_romans(variable_t))== type("string")