예제 #1
0
 def test_starts_with_number(self):
     self.assertTrue(LevelNameValidator.validate("0FOO", Level.shot))
예제 #2
0
 def test_starts_with_letter(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("A1000",Level.shot)
예제 #3
0
 def test_upper_letters(self):
     name = "FOOBAR"
     self.assertTrue(LevelNameValidator.validate(name, Level.show))
예제 #4
0
 def test_numbers(self):
     self.assertTrue(LevelNameValidator.validate("0001", Level.shot))
예제 #5
0
 def test_seq_starts_with_number(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("1RD", Level.sequence)
예제 #6
0
 def test_contains_space(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("FOO BAR", Level.sequence)
예제 #7
0
 def test_single_letter_upper(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("R", Level.sequence)
예제 #8
0
 def test_contains_number(self):
     self.assertTrue(LevelNameValidator.validate("FO10P", Level.show))
예제 #9
0
 def test_upper_letters(self):
     self.assertTrue(LevelNameValidator.validate("RD", Level.sequence))
예제 #10
0
 def test_seq_contains_number(self):
     self.assertTrue(LevelNameValidator.validate("RD1", Level.sequence))
예제 #11
0
 def test_contains_period(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("FOO.BAR", Level.show)
예제 #12
0
 def test_contains_underscore(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("FOO_BAR", Level.show)
예제 #13
0
 def test_ends_with_number(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("FOOBAR1", Level.show)
예제 #14
0
 def test_number_letter_lowercase(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("0a", Level.shot)
예제 #15
0
 def test_seq_lower(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("foobar", Level.sequence)
예제 #16
0
 def test_number_after_first_letter(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("R1RD", Level.shot)
예제 #17
0
 def test_contains_dash(self):
     with self.assertRaises(KeyError):
         LevelNameValidator.validate("FOO-BAR", Level.shot)