'Behavior is correct if --no-location switch isn\'t specified.'

def test_no_location_disabled(self):

    os.chdir(self.test_dir)
    management.call_command(u'makemessages', locale=[LOCALE], verbosity=0, no_location=False)
    self.assertTrue(os.path.exists(self.PO_FILE))
    with open(self.PO_FILE, u'r') as fp:
        po_contents = force_text(fp.read())
        if (os.name == u'nt'):
            cwd_prefix = (u'%s%s' % (os.curdir, os.sep))
        else:
            cwd_prefix = u''
        needle = os.sep.join([(u'#:    %stemplates' % cwd_prefix), u'test.html:55'])
        self.assertTrue((needle in po_contents), (u'"%s"    not    found    in    final    .po    file.' % needle))
        bad_suffix = u'.py'
        bad_string = (u'templates%stest.html%s' % (os.sep, bad_suffix))
        self.assertFalse((bad_string in po_contents), (u'"%s"    shouldn\'t    be    in    final    .po    file.' % bad_string))
