

def test_signals_with_explicit_doc_ids(self):
    ' Model saves must have a created flag the first time.'
    ei = self.ExplicitId(id=123)
    self.assertEqual(self.get_signal_output(ei.save), ['Is created'])
    self.assertEqual(self.get_signal_output(ei.save), ['Is updated'])

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_signals.py SignalTests.test_signals_with_explicit_doc_ids/original