Exemplo n.º 1
0
 def test_second_book(self):
     authors = set(text_type(x.key.id()) for x in fill_authors(Author))
     authors.add('__None')
     form = model_form(second_ndb_module.SecondBook)
     keys = set()
     for key, b, c in form().author.iter_choices():
         keys.add(key)
Exemplo n.º 2
0
 def test_second_book(self):
     authors = set(text_type(x.key.id()) for x in fill_authors(Author))
     authors.add('__None')
     form = model_form(second_ndb_module.SecondBook)
     keys = set()
     for key, b, c in form().author.iter_choices():
         keys.add(key)
Exemplo n.º 3
0
    def test_book(self):
        authors = set(x.key.urlsafe() for x in fill_authors(Author))
        authors.add('__None')
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Exemplo n.º 4
0
    def test_book(self):
        authors = set(text_type(x.key.id()) for x in fill_authors(Author))
        authors.add("__None")
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Exemplo n.º 5
0
    def test_book(self):
        authors = set(x.key.urlsafe() for x in fill_authors(Author))
        authors.add('__None')
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Exemplo n.º 6
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.author_names = set(x.name for x in self.authors)
     self.author_ages = set(x.age for x in self.authors)
Exemplo n.º 7
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.author_names = set(x.name for x in self.authors)
     self.author_ages = set(x.age for x in self.authors)
Exemplo n.º 8
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Exemplo n.º 9
0
 def setUp(self):
     super(TestRepeatedKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
     self.second_author_key = self.authors[1].key
Exemplo n.º 10
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Exemplo n.º 11
0
 def setUp(self):
     super(TestRepeatedKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
     self.second_author_key = self.authors[1].key
Exemplo n.º 12
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Exemplo n.º 13
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Exemplo n.º 14
0
    def setUp(self):
        super(TestReferencePropertyField, self).setUp()

        self.authors = fill_authors(Author)
        self.author_names = set(x.name for x in self.authors)
        self.author_ages = set(x.age for x in self.authors)
Exemplo n.º 15
0
    def setUp(self):
        super(TestReferencePropertyField, self).setUp()

        self.authors = fill_authors(Author)
        self.author_names = set(x.name for x in self.authors)
        self.author_ages = set(x.age for x in self.authors)