Ejemplo n.º 1
0
 def test_get_test_arg_short_without_new_line_returns_arg(self):
     test_ = Test('name', print)
     test_.provider = '1'
     test_.argument = 1
     TestSuite.get_instance().providers['1'] = None, str
     self.assertEqual('[1]',
                      Listener._get_test_arg_short_without_new_line(test_))
Ejemplo n.º 2
0
 def test_get_test_arg_short_with_mapping(self):
     test_ = Test('name', print)
     test_.provider = '1'
     test_.argument = 'asd'
     TestSuite.get_instance().providers['1'] = None, lambda x: str(x).upper(
     )
     self.assertEqual('[ASD]',
                      Listener._get_test_arg_short_without_new_line(test_))
Ejemplo n.º 3
0
 def test_get_test_arg_short_without_new_line_returns_empty(self):
     test_ = Test('name', print)
     test_.argument = 1
     self.assertEqual('',
                      Listener._get_test_arg_short_without_new_line(test_))
Ejemplo n.º 4
0
 def test_get_test_arg_short_without_new_line_returns_none(self):
     test_ = Test('name', print)
     test_.provider = '1'
     self.assertEqual('[None]',
                      Listener._get_test_arg_short_without_new_line(test_))