Exemplo n.º 1
0
 def test_init_validation(self, validate):
     """Should validate DTM when initialized."""
     DTM.copy(self.dtm1)
     validate.assert_called_once_with()
Exemplo n.º 2
0
 def test_init_dtm(self):
     """Should copy DTM if passed into DTM constructor."""
     new_dtm = DTM.copy(self.dtm1)
     self.assert_is_copy(new_dtm, self.dtm1)