'A keypair file written by ``RootCredential.initialize`` has
the correct permissions (0600).'

def test_keypair_correct_umask(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    RootCredential.initialize(path, 'mycluster')
    keyPath = path.child(AUTHORITY_KEY_FILENAME)
    st = os.stat(keyPath.path)
    self.assertEqual('0600', oct((st.st_mode & 511)))
