def test_multi_dped(self):
     self.assertEqual(
         ['test_case'],
         dqc_us_0033_0036._get_default_dped(
             {'': ['test_case'], 'foo': ['another test case']}
         )
     )
Exemple #2
0
 def test_length_one_dped(self):
     """
     Tests to make sure that _get_default_dped on a dict with a None and a
     string returns the string
     """
     self.assertEqual(
         ['test_case'],
         dqc_us_0033_0036._get_default_dped({'': ['test_case']})
     )
Exemple #3
0
 def test_multi_dped(self):
     """
     Tests to make sure that _get_default_dped return the first non Nil
     string in a dict
     """
     self.assertEqual(
         ['test_case'],
         dqc_us_0033_0036._get_default_dped(
             {'': ['test_case'], 'foo': ['another test case']}
         )
     )
 def test_length_one_dped(self):
     self.assertEqual(
         ['test_case'],
         dqc_us_0033_0036._get_default_dped({'': ['test_case']})
     )
 def test_no_dped(self):
     self.assertIsNone(dqc_us_0033_0036._get_default_dped({}))
Exemple #6
0
 def test_no_dped(self):
     """
     Tests to make sure that _get_default_dped on an empty dict returns None
     """
     self.assertIsNone(dqc_us_0033_0036._get_default_dped({}))