def test_formatcommand_command_with_three_args_one_empty(self):
     from gocept.selenium.scripts.converthtmltests import formatcommand
     line = formatcommand('command', 'arg1', '', 'arg2')
     self.assertEqual(line, '        selenium.command("arg1", "arg2")')
 def test_formatcommand_command_without_args(self):
     from gocept.selenium.scripts.converthtmltests import formatcommand
     line = formatcommand('command')
     self.assertEqual(line, '        selenium.command()')
 def test_formatcommand_command_with_single_arg(self):
     from gocept.selenium.scripts.converthtmltests import formatcommand
     line = formatcommand('command', 'arg')
     self.assertEqual(line, '        selenium.command("arg")')
 def test_formatcommand_no_command(self):
     from gocept.selenium.scripts.converthtmltests import formatcommand
     line = formatcommand('')
     self.assertEqual(line, '')