Beispiel #1
0
 def test_format_return_no_result(self):
     actual = verbose_proxy.format_return(None, 2)
     assert actual is None
Beispiel #2
0
 def test_format_return_sequence(self):
     expected = "(list with 10 items)"
     actual = verbose_proxy.format_return(list(range(10)), 2)
     assert expected == actual
Beispiel #3
0
 def test_format_return(self):
     expected = repr({'Id': 'ok'})
     actual = verbose_proxy.format_return({'Id': 'ok'}, 2)
     assert expected == actual
Beispiel #4
0
 def test_format_return_no_result(self):
     actual = verbose_proxy.format_return(None, 2)
     self.assertEqual(None, actual)
Beispiel #5
0
 def test_format_return(self):
     expected = repr({'Id': 'ok'})
     actual = verbose_proxy.format_return({'Id': 'ok'}, 2)
     self.assertEqual(expected, actual)
Beispiel #6
0
 def test_format_return_no_result(self):
     actual = verbose_proxy.format_return(None, 2)
     self.assertEqual(None, actual)
Beispiel #7
0
 def test_format_return(self):
     expected = repr({'Id': 'ok'})
     actual = verbose_proxy.format_return({'Id': 'ok'}, 2)
     self.assertEqual(expected, actual)
Beispiel #8
0
 def test_format_return_sequence(self):
     expected = "(list with 10 items)"
     actual = verbose_proxy.format_return(list(range(10)), 2)
     self.assertEqual(expected, actual)