Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
 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)
Exemple #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)
Exemple #8
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Exemple #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
Exemple #10
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Exemple #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
Exemple #12
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Exemple #13
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Exemple #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)
Exemple #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)