def test_init_validation(self, validate): """Should validate DTM when initialized.""" DTM.copy(self.dtm1) validate.assert_called_once_with()
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)