Exemple #1
0
 def test_empty(self):
     self.assertEqual(Flag.split_flag(''), (u'', True))
Exemple #2
0
 def test_double_dash_equal(self):
     self.assertEqual(Flag.split_flag('--hello='), (u'hello', True))
Exemple #3
0
 def test_full_flag(self):
     self.assertEqual(Flag.split_flag('--hello=world'), (u'hello', u'world'))
Exemple #4
0
 def test_single_dash(self):
     self.assertEqual(Flag.split_flag('-'), (u'', True))
Exemple #5
0
 def test_single_flag(self):
     self.assertEqual(Flag.split_flag('-x'), (u'x', True))
Exemple #6
0
 def test_empty(self):
     self.assertEqual(Flag.split_flag(''), (u'', True))
Exemple #7
0
 def test_full_flag(self):
     self.assertEqual(Flag.split_flag('--hello=world'),
                      (u'hello', u'world'))
Exemple #8
0
 def test_double_dash_equal(self):
     self.assertEqual(Flag.split_flag('--hello='), (u'hello', True))
Exemple #9
0
 def test_single_flag(self):
     self.assertEqual(Flag.split_flag('-x'), (u'x', True))
Exemple #10
0
 def test_single_dash(self):
     self.assertEqual(Flag.split_flag('-'), (u'', True))