File: test_xdeb.py

package info (click to toggle)
xdeb 0.6.6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 252 kB
  • sloc: python: 1,638; sh: 28; makefile: 22
file content (15 lines) | stat: -rw-r--r-- 469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (c) 2011 Canonical Ltd.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from unittest import TestCase

from xdeb import parse_options, want_apt_version

class TestWantAptVersion(TestCase):
    def test_no_apt(self):
        _parser, options, _args = parse_options(args=[])
        options.prefer_apt = False
        options.apt_source = False
        self.assertFalse(want_apt_version(options, None))