Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(31)  |  Call(28)  |  Derive(0)  |  Import(3)

src/a/s/astropy-0.3.1/astropy/io/ascii/tests/test_read_unicode.py   astropy(Download)
from ....table import Table
 
from .common import (raises, assert_equal, assert_almost_equal,
                     assert_true, setup_function, teardown_function)
 
def test_fill_values():
    f = 't/fill_values.txt'
    testfile = get_testfiles(f)
    data = asciitable.read(f, fill_values=('a', '1'), **testfile['opts'])
    assert_true((data['a'].mask == [False, True]).all())
    assert_true((data['a'] == [1, 1]).all())
    assert_true((data['b'].mask == [False, True]).all())
    assert_true((data['b'] == [2, 1]).all())

src/a/s/astropy-0.3.1/astropy/io/ascii/tests/test_read.py   astropy(Download)
from ....table import Table
 
from .common import (raises, assert_equal, assert_almost_equal,
                     assert_true, setup_function, teardown_function)
 
def test_fill_values():
    f = 't/fill_values.txt'
    testfile = get_testfiles(f)
    data = asciitable.read(f, fill_values=('a', '1'), **testfile['opts'])
    assert_true((data['a'].mask == [False, True]).all())
    assert_true((data['a'] == [1, 1]).all())
    assert_true((data['b'].mask == [False, True]).all())
    assert_true((data['b'] == [2, 1]).all())

src/d/i/didjvu-0.2.7/tests/test_xmp.py   didjvu(Download)
import os
 
from . common import (
    SkipTest,
    assert_equal,
            except StopIteration:
                event, element = None, None
            assert_true(event is None)
        return test
 
            except StopIteration:
                line = None
            assert_true(line is None)
        return test
 
            except StopIteration:
                line = None
            assert_true(line is None)
        return test
 
            assert_equal(create_date, self._original_create_date)
            mod_date = get(ns.xmp, 'ModifyDate')
            assert_true(mod_date > create_date)
            metadata_date = get(ns.xmp, 'MetadataDate')
            assert_equal(mod_date, metadata_date)