Changeset 184
- Timestamp:
- 16-04-07 22:52:25 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
moap/test/test_commands_doap.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r183 r184 1 2007-04-16 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * moap/test/test_commands_doap.py (TestDoapMach, TestDoapMach.setUp, 4 TestDoapMach.testIcal, TestDoapMach.testShow): 5 Add another test. 6 1 7 2007-04-16 Thomas Vander Stichele <thomas at apestaart dot org> 2 8 -
trunk/moap/test/test_commands_doap.py
r180 r184 11 11 from moap.command import doap 12 12 13 class Test MachDoapIcal(common.TestCase):13 class TestDoapMach(common.TestCase): 14 14 def setUp(self): 15 15 self.doap = os.path.join(os.path.dirname(__file__), 'doap', … … 20 20 self.command = doap.Doap(stdout=self.stdout) 21 21 22 def test DoapIcal(self):22 def testIcal(self): 23 23 ret = self.command.parse(['-f', self.doap, 'ical']) 24 24 ref = open(self.ical).read() 25 25 self.assertEquals(self.stdout.getvalue(), ref) 26 27 def testShow(self): 28 ret = self.command.parse(['-f', self.doap, 'show']) 29 ref = u"""DOAP file: %s 30 project: Mach 31 short description: mach makes chroots 32 created: 2002-06-06 33 homepage: http://thomas.apestaart.org/projects/mach/ 34 bug database: https://apestaart.org/thomas/trac/newticket 35 download page: http://thomas.apestaart.org/projects/mach/ 36 Latest release: version 0.9.0 'Cambria' on branch 2. 37 """ % self.doap 38 self.assertEquals(self.stdout.getvalue(), ref) 26 39
Note: See TracChangeset
for help on using the changeset viewer.
