示例#1
0
 def test_triple_upper(self):
     self.assertEqual(get_colour('#AAAAAA'), '#aaa')
示例#2
0
 def test_triple_mixed(self):
     self.assertEqual(get_colour('#aAaAaA'), '#aaa')
示例#3
0
 def test_triple_number(self):
     self.assertEqual(get_colour('#777777'), '#777')
示例#4
0
 def test_blue_upper(self):
     self.assertEqual(get_colour('#0000FF'), 'blue')
示例#5
0
 def test_triple_lower(self):
     self.assertEqual(get_colour('#aaaaaa'), '#aaa')
示例#6
0
 def test_blue_lower(self):
     self.assertEqual(get_colour('#0000ff'), 'blue')
示例#7
0
 def test_blue_mixed(self):
     self.assertEqual(get_colour('#0000Ff'), 'blue')
示例#8
0
 def test_triple_number(self):
     self.assertEqual(get_colour("#777777"), "#777")
示例#9
0
 def test_triple_upper(self):
     self.assertEqual(get_colour("#AAAAAA"), "#aaa")
示例#10
0
 def test_triple_mixed(self):
     self.assertEqual(get_colour("#aAaAaA"), "#aaa")
示例#11
0
 def test_triple_lower(self):
     self.assertEqual(get_colour("#aaaaaa"), "#aaa")
示例#12
0
 def test_blue_upper(self):
     self.assertEqual(get_colour("#0000FF"), "blue")
示例#13
0
 def test_blue_mixed(self):
     self.assertEqual(get_colour("#0000Ff"), "blue")
示例#14
0
 def test_blue_lower(self):
     self.assertEqual(get_colour("#0000ff"), "blue")