Changeset 184


Ignore:
Timestamp:
16-04-07 22:52:25 (6 years ago)
Author:
thomas
Message:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r183 r184  
     12007-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 
    172007-04-16  Thomas Vander Stichele  <thomas at apestaart dot org> 
    28 
  • trunk/moap/test/test_commands_doap.py

    r180 r184  
    1111from moap.command import doap 
    1212 
    13 class TestMachDoapIcal(common.TestCase): 
     13class TestDoapMach(common.TestCase): 
    1414    def setUp(self): 
    1515        self.doap = os.path.join(os.path.dirname(__file__), 'doap', 
     
    2020        self.command = doap.Doap(stdout=self.stdout) 
    2121 
    22     def testDoapIcal(self): 
     22    def testIcal(self): 
    2323        ret = self.command.parse(['-f', self.doap, 'ical']) 
    2424        ref = open(self.ical).read() 
    2525        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 
     30project:           Mach 
     31short description: mach makes chroots 
     32created:           2002-06-06 
     33homepage:          http://thomas.apestaart.org/projects/mach/ 
     34bug database:      https://apestaart.org/thomas/trac/newticket 
     35download page:     http://thomas.apestaart.org/projects/mach/ 
     36Latest release:    version 0.9.0 'Cambria' on branch 2. 
     37""" % self.doap 
     38        self.assertEquals(self.stdout.getvalue(), ref) 
    2639         
Note: See TracChangeset for help on using the changeset viewer.