예제 #1
0
 def test_good_bad_dim_dict(self):
     dim_dict = {'dist_type': 'b'}
     with self.assertRaises(TypeError):
         testing.validate_dim_dict(3, dim_dict)
예제 #2
0
 def test_good_bad_dim_dict(self):
     dim_dict = {'dist_type': 'b'}
     with self.assertRaises(TypeError):
         testing.validate_dim_dict(3, dim_dict)
예제 #3
0
 def test_good_dim_dict(self):
     dim_dict = {}
     success, msg = testing.validate_dim_dict(3, dim_dict)
     self.assertTrue(success)
예제 #4
0
 def test_good_dim_dict(self):
     dim_dict = {}
     success, msg = testing.validate_dim_dict(3, dim_dict)
     self.assertTrue(success)