File: test_gene.py

package info (click to toggle)
python-cobra 0.29.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: python: 14,703; xml: 12,841; makefile: 137; sh: 32
file content (15 lines) | stat: -rw-r--r-- 308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Test functions of gene.py ."""

from cobra.core import Model


def test_repr_html_(model: Model) -> None:
    """Test HTML represenation is correct for a gene.

    Parameters
    ----------
    model : cobra.Model
        The textbook model.

    """
    assert "<table>" in model.genes[0]._repr_html_()