view tests/test_binaryfiles.py @ 1197:1414cdafa7af

svnmeta: explicitly test for None There was a slight error in the way we were checking the value of 'c' via 'if c'. If the type of 'c' is a bool then this could incorrectly be false. Instead, we check for None explicitly. Nothing in production should have been affected by this yet since this was only a problem with patches not yet released.
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 02 Jun 2014 16:31:54 -0500
parents da2c835cd6b8
children
line wrap: on
line source

import test_util

import unittest

class TestFetchBinaryFiles(test_util.TestBase):
    stupid_mode_tests = True

    def test_binaryfiles(self):
        repo = self._load_fixture_and_fetch('binaryfiles.svndump')
        self.assertEqual('cce7fe400d8d', str(repo['tip']))