def debian_architecture(self): """ The Debian architecture of the current environment (a string). This logic was originally implemented in py2deb but has since been moved to :func:`deb_pkg_tools.utils.find_debian_architecture()`. This property remains as a convenient shortcut. """ return find_debian_architecture()
def debian_architecture(self): """ Find the Debian architecture of the current environment. This logic was originally implemented in py2deb but has since been moved to :py:func:`deb_pkg_tools.utils.find_debian_architecture()`. This property remains as a convenient shortcut. """ return find_debian_architecture()
def test_architecture_determination(self): """Make sure discovery of the current build architecture works properly.""" valid_architectures = execute('dpkg-architecture', '-L', capture=True).splitlines() assert find_debian_architecture() in valid_architectures
def test_architecture_determination(self): valid_architectures = execute('dpkg-architecture', '-L', capture=True).splitlines() self.assertTrue(find_debian_architecture() in valid_architectures)