def test_two_object_cursor_at_first(self):
     line = '{1}no{0}Run Keyword And Expect Error'.format(
         '    BuiltIn.', '    Selenium2Library.')
     prefix = 'no'
     column = 23
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, 'Selenium2Library')
示例#2
0
 def test_two_object_cursor_at_first(self):
     line = '{1}no{0}Run Keyword And Expect Error'.format(
         '    BuiltIn.', '    Selenium2Library.')
     prefix = 'no'
     column = 23
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, 'Selenium2Library')
 def test_no_object(self):
     line = '    run'
     prefix = line.strip(' ')
     column = len(line)
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, None)
 def test_object(self):
     line = '    BuiltIn.run'
     prefix = 'run'
     column = len(line)
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, 'BuiltIn')
示例#5
0
 def test_no_object(self):
     line = '    run'
     prefix = line.strip(' ')
     column = len(line)
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, None)
示例#6
0
 def test_object(self):
     line = '    BuiltIn.run'
     prefix = 'run'
     column = len(line)
     expected = get_object_from_line(line, prefix, column)
     self.assertEqual(expected, 'BuiltIn')