示例#1
0
 def test_search_called_with_certificate_name(self, mock_search):
     search(self, certificate_name="123")
     mock_search.assert_called_with(body=DeviceTestSearchOptions(
         product_id=None,
         dps_registration_id=None,
         dps_x509_certificate_common_name="123",
     ))
示例#2
0
 def test_search_not_called_when_no_criteria(self, mock_search):
     with self.assertRaises(CLIError):
         search(self)