def test_string_contains_environment_var_embeeded_escape(self):
     self.assertEqual(string_contains_environment_var(r"foo\$bar"), False)
 def test_string_contains_environment_var_bad_var(self):
     self.assertEqual(string_contains_environment_var("$.MyWeirdValue"),
                      False)
 def test_string_contians_environmnet_var_embedded_2(self):
     self.assertEqual(string_contains_environment_var("foo:$BAR"), True)
 def test_string_contains_environment_var_embedded(self):
     self.assertEqual(string_contains_environment_var(r"\$foo:$BAR"), True)
 def test_string_contains_environment_var_true(self):
     self.assertEqual(string_contains_environment_var("$FOO"), True)
 def test_string_contains_environment_var_multi_escaped(self):
     self.assertEqual(string_contains_environment_var(r"\$foo:\$bar"),
                      False)
 def test_string_contains_environment_var_single_escaped(self):
     self.assertEqual(string_contains_environment_var(r"\$foo"), False)
 def test_string_contains_environment_var_no_dollar(self):
     self.assertEqual(string_contains_environment_var("foo"), False)