~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testknit.py

  • Committer: Martin Pool
  • Date: 2005-06-27 02:40:50 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627024050-71846e78c24084ef
Change storage of texts for testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
# texts for use in testing
28
 
TEXTS = [
29
 
    ["This is my text"], 
30
 
]
 
28
TEXT_0 = ["Hello world"]
 
29
TEXT_1 = ["Hello world",
 
30
          "A second line"]
31
31
 
32
32
 
33
33
class Easy(TestBase):
39
39
    """Store and retrieve a simple text."""
40
40
    def runTest(self):
41
41
        k = Knit()
42
 
        k.add(TEXTS[0])
43
 
        self.assertEqual(k.get(), TEXTS[0])
 
42
        k.add(TEXT_0)
 
43
        self.assertEqual(k.get(), TEXT_0)
44
44
 
45
45
 
46
46
def testknit():