def test1(self):
        th = TestHelper()
        p1 = th.add_prefix('1.3.0.0/16', 'reservation', 'test')
        # make sure added and last_modified are equal
        self.assertEqual(p1.added, p1.last_modified)

        # this is a bit silly, but as the last_modified time is returned with a
        # precision of seconds, we need to make sure that we fall on the next
        # second to actually notice that last_modified is not equal to added
        time.sleep(1)

        p1.description = 'updated description'
        p1.save()

        # last_modified should have a later timestamp than added
        self.assertNotEqual(p1.added, p1.last_modified)
Test that top level namespace API works without error
dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipaptest.py/TestPrefixLastModified.test1--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/app/qt/tests/test_terminal.py/TestTerminal.test_update_namespace