X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftest%2F006%2Ftest.py;h=51a33170aac504711eab42b25d7efe973a53527d;hb=ab0b5f4dac08ae1f8f9464c6a7977686605a44c3;hp=9293c02110f4daa1e585cb135883868941021bd1;hpb=30413cf0ff7bc21b8d2b8b4346406357fe55dc19;p=dak.git diff --git a/dak/test/006/test.py b/dak/test/006/test.py index 9293c021..51a33170 100755 --- a/dak/test/006/test.py +++ b/dak/test/006/test.py @@ -1,9 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Test utils.fix_maintainer() -# Copyright (C) 2004 James Troup -# $Id: test.py,v 1.2 2004-06-23 23:11:51 troup Exp $ +# Test textutils.fix_maintainer() +# Copyright (C) 2004, 2006 James Troup # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +24,7 @@ import os, sys sys.path.append(os.path.abspath('../../')) -import utils +import textutils ################################################################################ @@ -36,7 +35,7 @@ def fail(message): ################################################################################ def check_valid(s, xa, xb, xc, xd): - (a, b, c, d) = utils.fix_maintainer(s) + (a, b, c, d) = textutils.fix_maintainer(s) if a != xa: fail("rfc822_maint: %s (returned) != %s (expected [From: '%s']" % (a, xa, s)) if b != xb: @@ -48,7 +47,7 @@ def check_valid(s, xa, xb, xc, xd): def check_invalid(s): try: - utils.fix_maintainer(s) + textutils.fix_maintainer(s) fail("%s was parsed successfully but is expected to be invalid." % (s)) except utils.ParseMaintError, unused: pass