/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_mail_client.py

  • Committer: Robert Collins
  • Date: 2009-05-23 20:57:12 UTC
  • mfrom: (4371 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4441.
  • Revision ID: robertc@robertcollins.net-20090523205712-lcwbfqk6vwavinuv
MergeĀ .dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
import urllib
18
18
 
32
32
        self.assertEqual(['-a', 'file%'], commandline)
33
33
        commandline = mutt._get_compose_commandline('jrandom@example.org',
34
34
                                                     'Hi there!', None)
35
 
        self.assertEqual(['-s', 'Hi there!', 'jrandom@example.org'],
 
35
        self.assertEqual(['-s', 'Hi there!', '--', 'jrandom@example.org'],
36
36
                         commandline)
37
37
 
38
38
    def test_commandline_is_8bit(self):
40
40
        cmdline = mutt._get_compose_commandline(u'jrandom@example.org',
41
41
            u'Hi there!', u'file%')
42
42
        self.assertEqual(
43
 
            ['-s', 'Hi there!', '-a', 'file%', 'jrandom@example.org'],
 
43
            ['-s', 'Hi there!', '-a', 'file%', '--', 'jrandom@example.org'],
44
44
            cmdline)
45
45
        for item in cmdline:
46
46
            self.assertFalse(isinstance(item, unicode),