Esempio n. 1
0
 def test_no_env(self):
     """Note. This is probably not wanted behaviour but I am documenting here!
        What this is saying is that the study name is TEST(99) and there is no
        environment supplied.
     """
     env = rwsobjects.getEnvironmentFromNameAndProtocol('TEST(99)', 'TEST(99)')
     self.assertEqual(env, '')
Esempio n. 2
0
 def test_no_env(self):
     """Note. This is probably not wanted behaviour but I am documenting here!
        What this is saying is that the study name is TEST(99) and there is no
        environment supplied.
     """
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         'TEST(99)', 'TEST(99)')
     self.assertEqual(env, '')
Esempio n. 3
0
 def test_single_left_brace_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         'TEST :( (PROD)', 'TEST :(')
     self.assertEqual(env, 'PROD')
Esempio n. 4
0
 def test_braces_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         'TEST (1) (ZZZ)', 'TEST (1)')
     self.assertEqual(env, 'ZZZ')
Esempio n. 5
0
 def test_simple(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         'TEST (DEV)', 'TEST')
     self.assertEqual(env, 'DEV')
Esempio n. 6
0
 def test_braces_tight_spaces(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol('TEST(99)(AUX)', 'TEST(99)')
     self.assertEqual(env, 'AUX')
Esempio n. 7
0
 def test_single_left_brace_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol('TEST :( (PROD)', 'TEST :(')
     self.assertEqual(env, 'PROD')
Esempio n. 8
0
 def test_braces_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         "TEST (1) (ZZZ)", "TEST (1)")
     self.assertEqual(env, "ZZZ")
Esempio n. 9
0
 def test_simple(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol('TEST (DEV)', 'TEST')
     self.assertEqual(env, 'DEV')
Esempio n. 10
0
 def test_braces_tight_spaces(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol("TEST(99)(AUX)", "TEST(99)")
     self.assertEqual(env, "AUX")
Esempio n. 11
0
 def test_single_left_brace_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol("TEST :( (PROD)", "TEST :(")
     self.assertEqual(env, "PROD")
Esempio n. 12
0
 def test_braces_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol("TEST (1) (ZZZ)", "TEST (1)")
     self.assertEqual(env, "ZZZ")
Esempio n. 13
0
 def test_simple(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol("TEST (DEV)", "TEST")
     self.assertEqual(env, "DEV")
Esempio n. 14
0
 def test_braces_tight_spaces(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         "TEST(99)(AUX)", "TEST(99)")
     self.assertEqual(env, "AUX")
Esempio n. 15
0
 def test_single_left_brace_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         "TEST :( (PROD)", "TEST :(")
     self.assertEqual(env, "PROD")
Esempio n. 16
0
 def test_braces_tight_spaces(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         'TEST(99)(AUX)', 'TEST(99)')
     self.assertEqual(env, 'AUX')
Esempio n. 17
0
 def test_braces_in_name(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol('TEST (1) (ZZZ)', 'TEST (1)')
     self.assertEqual(env, 'ZZZ')
Esempio n. 18
0
 def test_simple(self):
     env = rwsobjects.getEnvironmentFromNameAndProtocol(
         "TEST (DEV)", "TEST")
     self.assertEqual(env, "DEV")