Beispiel #1
0
  def test_contactlog(self):
    user = users.User(email='*****@*****.**')

    rs = Ruleset(name='Foo Bar')
    rs.put()

    cl = ContactLog(name='Quux', ruleset=rs, owner=user)
    cl.put()

    cl2 = db.get(cl.key())
    self.assertEquals('Quux', cl.name)
    self.assertEquals(rs, cl.ruleset)
    self.assertEquals(user, cl.owner)
    self.assertTrue(cl.when_created)
Beispiel #2
0
  def test_ruleset(self):
    rs = Ruleset(name='Foo Bar')
    rs.put()

    rs2 = db.get(rs.key())
    self.assertEquals(rs.name, rs2.name)