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