1 from unittest import TestCase
5 from naja.utils import convert_colour
8 class TestConvertColour(TestCase):
10 self.red = pygame.Color('red')
12 def test_pass_through(self):
13 self.assertEqual(self.red, convert_colour(self.red))
16 self.assertEqual(self.red, convert_colour((255, 0, 0)))
18 def test_string(self):
19 self.assertEqual(self.red, convert_colour('red'))